package com.coolled.ei.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.coolled.ei.entity.PartMaster;
import com.coolled.ei.mapper.PartMasterMapper;
import com.coolled.ei.service.PartMasterService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class PartMasterServiceImpl extends BaseServiceImpl<PartMasterMapper, PartMaster> implements PartMasterService {
    private final PartMasterMapper partMasterMapper;

    public List<PartMaster> selectIndex(Integer partIndex) {
        return partMasterMapper.selectList(new QueryWrapper<>(new PartMaster().setPartIndex(2)));
    }
}
